<%--
  Created by IntelliJ IDEA.
  User: mac
  Date: 2020/11/30
  Time: 7:57 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生信息管理系统</title>
    <link href="css/bootstrap.min.css" rel="stylesheet"/>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>

<style>

    .wrap {
        width: 100%;
        height: 100%;
        position: relative;
        alignment: center;
    }

    .box {
        position: relative;
        width: 400px;
        height: 250px;
        /*outline: solid 2px #ff0000;*/
        text-align: center;
        top: 50%;
        border: 2px solid black;
        margin: auto;
        margin-top: -125px;
    }

</style>
<body>
<div class="wrap">
    <div class="box">
        <div>
            <h1>学生信息管理系统</h1>
            <br>

            <form action="login" method="post">
                用户名：<input type="text" name="userName"/><br/>
                <br>
                密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="text" name="password"/><br/>
                <span style="color: red"><%= request.getAttribute("error") == null ? "" : request.getAttribute("error")%></span><br/>
                <input type="submit" class="btn btn-primary" value="登录">
            </form>
        </div>

    </div>
</div>

</body>
</html>
